package com.wuseguang.springcloud.entity;

import java.io.Serializable;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * <p>
 * 德育-德育项
 * </p>
 *
 * @author 
 * @since 2020-06-28
 */
@Entity
@Data
public class MeMoralEducation  {

    private static final long serialVersionUID = 1L;

    /**
     * 德育项id
     */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
    /**
     * 名称
     */
	private String name;
    /**
     * 分数
     */
	private Integer score;
    /**
     * 学校id
     */
	private Integer schoolId;
    /**
     * 发布教师id
     */
	private Integer teacherId;
    /**
     * 发布时间
     */
	@JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date addTime;
	/**
	 * 扣分上限
	 */
	private Integer upperLimit;
}
